'use strict';

var name = 'scott';
var greeting = 'hello ' + name;
console.log(greeting);

//1、 let语法
for (var i = 0; i < 10; i++) {
  console.log(i);
}
//console.log(i)
var foo = 3;

//2、 变量的解构赋值
// 完全解构
var a = 1,
    b = 2,
    c = 3;

console.log(a);
console.log(b);
console.log(c);
// 不完全解构
var _ref = [1, 2, 3],
    x = _ref[0],
    y = _ref[1];

console.log(x);
console.log(y);
